export default {
  // functional: true,
  props: {
    row: Object,
    index: Number,
    customData: Array
    // vm: Object
  },
  // render: (h, ctx) => {
  //   const params = {
  //     row: ctx.props.row,
  //     index: ctx.props.index
  //   }

  //   return ctx.props.render(h, params)
  // }
  inject: ['vm'],
  render(h, context) {
    const { customData, row, index, vm } = this
    return h('div', {}, [
      ...customData.map((c, i, f) => c.render.apply(this, [h, vm, row, index]))
    ])
  }
}
